package com.ruoyi.project.module.productInfo.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 商品信息对象 tb_product_info
 * 
 * @author ruoyi
 * @date 2021-01-30
 */
public class ProductInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long productId;

    /** 商品编码 */
    @Excel(name = "商品编码")
    private String productCode;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brand;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 商品售价价格 */
    @Excel(name = "商品售价价格")
    private BigDecimal price;

    /** 上下架状态:0下架，1上架 */
    @Excel(name = "上下架状态:0下架，1上架")
    private Integer publishStatus;

    /** 审核状态: 0未审核，1已审核 */
    @Excel(name = "审核状态: 0未审核，1已审核")
    private Integer auditStatus;

    /** 商品重量 */
    @Excel(name = "商品重量")
    private Long weight;

    /** 商品长度 */
    @Excel(name = "商品长度")
    private Long length;

    /** 商品重量 */
    @Excel(name = "商品高度")
    private Long height;

    /** 商品宽度 */
    @Excel(name = "商品宽度")
    private Long width;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productionDate;

    /** 商品有效期 */
    @Excel(name = "商品有效期")
    private Long shelfLife;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String descript;

    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setProductCode(String productCode)
    {
        this.productCode = productCode;
    }

    public String getProductCode()
    {
        return productCode;
    }
    public void setBrand(String brand)
    {
        this.brand = brand;
    }

    public String getBrand()
    {
        return brand;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setPublishStatus(Integer publishStatus)
    {
        this.publishStatus = publishStatus;
    }

    public Integer getPublishStatus()
    {
        return publishStatus;
    }
    public void setAuditStatus(Integer auditStatus)
    {
        this.auditStatus = auditStatus;
    }

    public Integer getAuditStatus()
    {
        return auditStatus;
    }
    public void setWeight(Long weight)
    {
        this.weight = weight;
    }

    public Long getWeight()
    {
        return weight;
    }
    public void setLength(Long length)
    {
        this.length = length;
    }

    public Long getLength()
    {
        return length;
    }
    public void setHeight(Long height)
    {
        this.height = height;
    }

    public Long getHeight()
    {
        return height;
    }
    public void setWidth(Long width)
    {
        this.width = width;
    }

    public Long getWidth()
    {
        return width;
    }
    public void setProductionDate(Date productionDate)
    {
        this.productionDate = productionDate;
    }

    public Date getProductionDate()
    {
        return productionDate;
    }
    public void setShelfLife(Long shelfLife)
    {
        this.shelfLife = shelfLife;
    }

    public Long getShelfLife()
    {
        return shelfLife;
    }
    public void setDescript(String descript)
    {
        this.descript = descript;
    }

    public String getDescript()
    {
        return descript;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("productCode", getProductCode())
            .append("brand", getBrand())
            .append("productName", getProductName())
            .append("price", getPrice())
            .append("publishStatus", getPublishStatus())
            .append("auditStatus", getAuditStatus())
            .append("weight", getWeight())
            .append("length", getLength())
            .append("height", getHeight())
            .append("width", getWidth())
            .append("productionDate", getProductionDate())
            .append("shelfLife", getShelfLife())
            .append("descript", getDescript())
            .toString();
    }
}
